# Contributor: Mike Crute <mike@crute.us>
# Maintainer: Mike Crute <mike@crute.us>
pkgname=znc-push
pkgver=0_git20220823
pkgrel=7
pkgdesc="Push notification service module for ZNC"
url="https://wiki.znc.in/Push"
arch="all"
license="MIT"
makedepends="znc-dev icu-dev openssl-dev>3 zlib-dev"
# Upstream does not version, instead use the most recent hash of their master branch
_latest_upstream_hash="23d84678de2696e0b1f51aa5074764d29a98d37b"
source="$pkgname-$pkgver.tar.gz::https://github.com/jreese/znc-push/archive/$_latest_upstream_hash.tar.gz"
options="!check" # Upstream has no tests
builddir="$srcdir/$pkgname-$_latest_upstream_hash"

build() {
	make
}

package() {
	install -D -m644 "$builddir"/push.so "$pkgdir"/usr/lib/znc/push.so
}

sha512sums="
014361220ab8056157572117fe64f86c23b6ff398f4684d5e8b8c3687e668d3eba54d7866e5040474d55e9a364d2d2c812d68a521a1cebf74e6a23880a10a1ba  znc-push-0_git20220823.tar.gz
"
